# 1、判断
# while True:
#     import re
#     num = input("请输入：")
#     if re.findall(r"^\+?[1-9]\d*$",num):
#         print("正整数")
#     elif re.findall(r"^\-[1-9]\d*$",num):
#         print("负整数")
#     elif re.findall(r"^[\+|\-]?\d+\.\d+$",num):
#         print("浮点数")
#     elif num == "exit":
#         break
#     else:
#         print("重新输入")

# 2、验证密码
# import re
# passwd = input("请输入：")
# if re.findall("^[A-Za-z_].{7,9}$",passwd):
#     print("密码合法")
# else:
#     print("密码不合法")

# 3、提取电话号码
# import re
# num = input("请输入：")
# ret = re.findall("1\d{10}|1\d{2}-\d{4}-\d{4}|1\d{2} \d{4} \d{4}|\(\+86\) ?1\d{10}",num)
# if len(ret) == 0:
#     print("号码不存在")
# else:
#     for i in ret:
#         print(f"tel:{i}")
